import http from '@/utils/http'
//获取列表
export const getListApi = async(parm) =>{
    return await http.get("/api/role/list",parm)
}
//新增
export const addRoleApi = async(parm) =>{
    return await http.post("/api/role",parm)
}
//编辑
export const editRoleApi = async(parm) =>{
   return await http.put("/api/role",parm)
}
//删除
export const deleteRoleApi = async(parm) =>{
    return await http.delete("/api/role",parm)
}
//分配权限
export const getAssignShowApi = async(parm) =>{
    return await http.get("/api/role/getAssignShow",parm)
}
//保存角色分配的权限
export const assignSaveApi = async(parm) =>{
    return await http.post("/api/role/assignSave",parm)
}